package com.haiya.decorator.basic;

public class ConcreteDecorator2 extends Decorator {
    public ConcreteDecorator2(Component component) {
        super(component);
    }

    @Override
    public void operation() {
        super.operation();
        addedFunction();
    }

    public void addedFunction() {
        System.out.println("具体装饰器2(ConcreteDecorator2)的附加功能");
    }
}
